import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  currency_from: [{ required: true, message: "原币为必填项", trigger: "blur" }],
  rate: [{ required: true, message: "直接汇率为必填项", trigger: "blur" }],
  rate1: [{ required: true, message: "间接汇率为必填项", trigger: "blur" }],
  time: [{ required: true, message: "生效日期为必填项", trigger: "blur" }],
  currency_to: [{ required: true, message: "目的为必填项", trigger: "blur" }]
});
